export const getFrameParams = (urlStr) => {
  let url = urlStr || window.location.href;
  let urlParams = url.slice(url.indexOf('?') + 1).split('&');
  let params = [];
  urlParams.forEach(element => {
    let datas = element.split('=');
    params[datas[0]] = datas[1];
  });
  return params;
};
